[INFO] cloning repository https://github.com/Shika-B/math-utils
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shika-B/math-utils" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShika-B%2Fmath-utils", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShika-B%2Fmath-utils'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f1776f946da0998b2bd8348c156bfc6d404d0fc3
[INFO] checking Shika-B/math-utils against try#4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7 for pr-158816
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShika-B%2Fmath-utils" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Shika-B/math-utils
[INFO] finished tweaking git repo https://github.com/Shika-B/math-utils
[INFO] tweaked toml for git repo https://github.com/Shika-B/math-utils written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Shika-B/math-utils on toolchain 4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Shika-B/math-utils already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e
[INFO] running `Command { std: "docker" "start" "20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e" "/opt/rustwide/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e" "/opt/rustwide/cargo-home/bin/cargo" "+4d8aa70caf2d2f6ef5a31eab47961bf7d0acacb7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling num-bigint v0.4.3
[INFO] [stderr]    Compiling num-rational v0.4.1
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]     Checking num-complex v0.4.2
[INFO] [stderr]     Checking num v0.4.0
[INFO] [stderr]     Checking crypto-maths v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `num::pow`
[INFO] [stdout]  --> src/ring/arithmetic/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use num::pow;
[INFO] [stdout]   |         ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::ring::Ring`
[INFO] [stdout]    --> src/ring/mod_int/mod_int.rs:217:9
[INFO] [stdout]     |
[INFO] [stdout] 217 |     use crate::ring::Ring;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::ring::mod_int::ModInt`
[INFO] [stdout]    --> src/ring/mod_int/mod_int.rs:219:9
[INFO] [stdout]     |
[INFO] [stdout] 219 |     use crate::ring::mod_int::ModInt;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `big_mod_int::*`
[INFO] [stdout]  --> src/ring/mod_int/mod.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use big_mod_int::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BitAnd` and `Shl`
[INFO] [stdout]  --> src/ring/mod.rs:8:27
[INFO] [stdout]   |
[INFO] [stdout] 8 |     ops::{Add, AddAssign, BitAnd, Mul, MulAssign, Neg, Shl, Sub, SubAssign},
[INFO] [stdout]   |                           ^^^^^^                       ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Integer`
[INFO] [stdout]   --> src/ring/mod.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | use num::{Integer, One, Zero};
[INFO] [stdout]    |           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::pow`
[INFO] [stdout]   --> src/ring/mod.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub use num::pow;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::pow`
[INFO] [stdout]  --> src/ring/arithmetic/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use num::pow;
[INFO] [stdout]   |         ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `big_mod_int::*`
[INFO] [stdout]  --> src/ring/mod_int/mod.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use big_mod_int::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BitAnd` and `Shl`
[INFO] [stdout]  --> src/ring/mod.rs:8:27
[INFO] [stdout]   |
[INFO] [stdout] 8 |     ops::{Add, AddAssign, BitAnd, Mul, MulAssign, Neg, Shl, Sub, SubAssign},
[INFO] [stdout]   |                           ^^^^^^                       ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Integer`
[INFO] [stdout]   --> src/ring/mod.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | use num::{Integer, One, Zero};
[INFO] [stdout]    |           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::pow`
[INFO] [stdout]   --> src/ring/mod.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub use num::pow;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Matrix` is never constructed
[INFO] [stdout]  --> src/matrix/matrix.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Matrix<'a, R: Ring<'a>> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_field`, `is_commutative`, and `inverse` are never used
[INFO] [stdout]   --> src/ring/mod.rs:32:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub trait Ring<'a>:
[INFO] [stdout]    |           ---- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 32 |     fn is_field(&self) -> Option<bool> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     fn is_commutative(&self) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     fn inverse(&self) -> Option<Self> {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `xgcd` is never used
[INFO] [stdout]  --> src/ring/arithmetic/mod.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn xgcd<N: Integer + Clone>(n1: &N, n2: &N) -> (N, N, N) {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gcd` is never used
[INFO] [stdout]   --> src/ring/arithmetic/mod.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub fn gcd<N: Integer>(n1: &N, n2: &N) -> N {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lcm` is never used
[INFO] [stdout]   --> src/ring/arithmetic/mod.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn lcm<N: Integer>(n1: &N, n2: &N) -> N {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ModInt` is never constructed
[INFO] [stdout]   --> src/ring/mod_int/mod_int.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct ModInt {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `new_field`, `mod_pow`, and `sanitize_mod` are never used
[INFO] [stdout]   --> src/ring/mod_int/mod_int.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl ModInt {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 18 |     pub fn new(value: i128, modulus: i128) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn new_field(value: i128, modulus: i128) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn mod_pow(&self, exp: i128) -> Self {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 68 |     fn sanitize_mod(&mut self, other: &mut Self) {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Polynomial` is never used
[INFO] [stdout]   --> src/ring/polynomial/mod.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub trait Polynomial<'a>: Ring<'a> {
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UPolynomial` is never constructed
[INFO] [stdout]   --> src/ring/polynomial/univar_polynomial.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct UPolynomial<'a, R: Ring<'a>> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `scale`, and `eval` are never used
[INFO] [stdout]   --> src/ring/polynomial/univar_polynomial.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl<'a, R: Ring<'a>> UPolynomial<'a, R> {
[INFO] [stdout]    | ---------------------------------------- associated items in this implementation
[INFO] [stdout] 18 |     pub fn new(coefficients: Vec<R>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn scale(mut self, scalar: R) -> Self {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn eval(&self, point: R) -> R {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Matrix` is never constructed
[INFO] [stdout]  --> src/matrix/matrix.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Matrix<'a, R: Ring<'a>> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_field` is never used
[INFO] [stdout]   --> src/ring/mod.rs:32:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub trait Ring<'a>:
[INFO] [stdout]    |           ---- method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 32 |     fn is_field(&self) -> Option<bool> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gcd` is never used
[INFO] [stdout]   --> src/ring/arithmetic/mod.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub fn gcd<N: Integer>(n1: &N, n2: &N) -> N {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lcm` is never used
[INFO] [stdout]   --> src/ring/arithmetic/mod.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn lcm<N: Integer>(n1: &N, n2: &N) -> N {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `is_field` is never read
[INFO] [stdout]   --> src/ring/mod_int/mod_int.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct ModInt {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 14 |     is_field: Option<bool>,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ModInt` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_field` is never used
[INFO] [stdout]   --> src/ring/mod_int/mod_int.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl ModInt {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn new_field(value: i128, modulus: i128) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Polynomial` is never used
[INFO] [stdout]   --> src/ring/polynomial/mod.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub trait Polynomial<'a>: Ring<'a> {
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `eval` is never used
[INFO] [stdout]   --> src/ring/polynomial/univar_polynomial.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl<'a, R: Ring<'a>> UPolynomial<'a, R> {
[INFO] [stdout]    | ---------------------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn eval(&self, point: R) -> R {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.14s
[INFO] running `Command { std: "docker" "inspect" "20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e", kill_on_drop: false }`
[INFO] [stdout] 20d5a0fe37d10fbda58128c5fedbaac3026eb156e737b094595e170c4160087e
